home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / bdf2snf.zip / BDFTOSNF.DOC < prev    next >
Text File  |  1992-11-12  |  7KB  |  157 lines

  1. ───────────────────▄─
  2. ────────────────▄▄▄──     Quarterdeck Office Systems
  3. ─────────────▄▄▄▄▄───     150 Pico Boulevard
  4. ──────────▄▄▄▄▄▄▄────     Santa Monica, California
  5. ───────▄▄▄▄▄▄▄▄▄─────     90405
  6. ────▄▄▄▄▄▄▄▄▄▄▄──────
  7.  
  8. Porting the Fonts from other X Platforms to DESQview/X
  9.  
  10. Why does DESQview/X need the fonts from other X platforms?
  11.  
  12.    When an X application is displaying on a DESQview/X system, it makes
  13.    X Protocol requests to the DESQview/X server to provide the
  14.    appropriate fonts resources.  If DESQview/X's X Server doesn't
  15.    provide the font resources requested for the X application, the
  16.    content of the application's window may not be visible, or X Server
  17.    may substitute a different font, which may be undesirable.
  18.  
  19. How can I get a font from the other X platform?
  20.  
  21.    The X Window System allows an X Server's screen to support many
  22.    different fonts for display purposes.  A X Server may have many
  23.    bitmapped fonts installed (in addition to the scalable ones that
  24.    DESQview/X also uses).  These fonts are found in the font directories
  25.    in files with the extension .SNF, for Server Natural Format.  SNF
  26.    fonts are specific to a particular server; generic versions of the
  27.    fonts are distributed in .BDF format (Binary Distribution Format),
  28.    and a utility called BDFTOSNF converts .BDF files into .SNF format.
  29.  
  30.    (Note that the fonts described here are distinct from printer fonts,
  31.    though often the same basic technology can be used for both the
  32.    screen and the printer; DESQview/X, for example, uses Adobe Type
  33.    Manager technology.)
  34.  
  35. What does this document cover?
  36.  
  37.    This document explains the steps necessary to copy fonts from the
  38.    other X platform (typically, though not always, a UNIX-based system)
  39.    to the DOS machine on which DESQview/X was installed.  The steps
  40.    covered in this document begin with the assumption that you have
  41.    already installed DESQview/X, and have configured TCP/IP networking
  42.    software on both the X platform and on the DOS machine which runs
  43.    DESQview/X.
  44.  
  45. THE PROCEDURE 
  46.  
  47. 1. Transfer the .BDF font files from the X platform to the DOS machine.
  48.  
  49.    On the DOS machine, create a directory into which the .BDF font files
  50.    will be copied.  The best place for this is a subdirectory
  51.    DVX\SERVER\FONTS directory; create one with a name that is meaningful
  52.    to you.  For our example, we will use NEWXFONT.  If your DESQview/X
  53.    directory is not \DVX, change the path accordingly.
  54.  
  55.    md \DVX\SERVER\FONTS\NEWXFONT
  56.  
  57.    Next, start DESQview/X, open a DOS window, and (if necessary) change
  58.    to the directory on the DESQview/X machine where the FTP (File
  59.    Transfer Protocol) program is stored (typically the \DVX directory).
  60.  
  61.    cd \DVX
  62.  
  63.    Use the FTP utility to copy the .BDF files from the X platform.
  64.    Usually you can do this by issuing the following sequence of
  65.    commands:
  66.  
  67.    C:\DVX> ftp [hostname] [username] <ENTER>
  68.            password: [user-password] <ENTER>
  69.  
  70.            cd [fontpath] <ENTER>
  71.            lcd \DVX\SERVER\FONTS\NEWXFONT
  72.            mget [fontpath]*.BDF <ENTER>
  73.            quit <ENTER>
  74.  
  75.    In the above sequence of commands:
  76.  
  77.    [hostname] is the alias name or Internet Protocol (IP) address of the 
  78.    target X platform to which you are copying font files. 
  79.  
  80.    [username] is the login account name on the target X platform which
  81.    has the right to access the necessary paths.
  82.  
  83.    [password] is the password required for [username] to log
  84.    successfully onto the target X platform.
  85.  
  86.    [fontpath] is the directory on the target platform where the X Server
  87.    font resources are located.  This directory varies from platform to
  88.    platform. If you are uncertain about this directory, please contact
  89.    the system administrator of the target platform.
  90.    
  91. 2. Convert the font files from "binary definition format" (.BDF) to
  92.    "server natural format" (.SNF), and create a FONT.DIR file which
  93.    will contain a listing of the new fonts.
  94.  
  95.    Before you can use the fonts from the other X platform, you must
  96.    convert the .BDF files (which are in "Binary Distribution Format") to
  97.    .SNF ("Server Natural Format") files.  These files comprise the fonts
  98.    that the X Server may use.  When the X Server is requested for a
  99.    particular font it will search the fontpaths for files named
  100.    FONTS.DIR.  This file is a catalog of font filenames which are
  101.    associated with a particular X font resource string.  BDFTOSNF.EXE
  102.    manages to font conversion, and MKFNTDIR.EXE creates the font
  103.    listing.  MKFNTDIR comes with the regular DESQview/X distribution,
  104.    and should be in your \DVX directory; BDFTOSNF.EXE should have come
  105.    with this document.  Unlike its UNIX counterpart and earlier versions
  106.    of BDFTOSNF for DESQview/X, this version of BDFTOSNF does not require
  107.    redirection.
  108.  
  109.    The MAKESNF.BAT file, which should also have come with this document,
  110.    automates this process.  The MAKESNF.BAT file assumes
  111.  
  112.    a) that BDFTOSNF.EXE is in the current directory;
  113.    b) that the BDF fonts that you wish to convert are in the current
  114.       directory; and
  115.    c) that the MKFNTDIR program (explained below) is in the \DVX
  116.       directory on the current drive.
  117.  
  118.    Please alter MAKESNF.BAT accordingly if these files are elsewhere.
  119.    This is the MAKESNF.BAT file:
  120.  
  121.    rem MAKESNF.BAT
  122.    rem Usage: MAKESNF
  123.    rem - assumes that the fonts you wish to convert are in the current
  124.    rem   directory
  125.    rem - assumes that the .BDF fonts you wish to convert are in the
  126.    rem   current directory
  127.    rem - assumes that the MKFNTDIR program is in the \DVX directory on
  128.    rem   the current drive
  129.    for %%a in (*.bdf) do bdftosnf %%a
  130.    \dvx\mkfntdir
  131.  
  132.    Copy BDFTOSNF.EXE and MAKESNF.BAT (the files that came with this
  133.    document) to the new font directory.
  134.  
  135.    cd \DVX\SERVER\FONTS\NEWXFONT<ENTER>
  136.    MAKESNF<ENTER>
  137.  
  138. 3. Quit DESQview/X, go to the DESQview/X directory, and run the
  139.    DESQview/X Setup program.  Choose A for Advanced Setup, D for
  140.    Display, and F for Font Path.  To the end of the current font path,
  141.    append a comma and the name of the directory that you added in the
  142.    first step above.  In our example, the old line would look like this:
  143.  
  144.    misc,75dpi,atm
  145.  
  146.    and the new line would be
  147.  
  148.    misc,75dpi,atm,newxfont
  149.  
  150. 4. Restart DESQview/X.  You should now have access to the ported fonts.
  151.  
  152.    ************************************************************************
  153.    *This technical note may be copied and distributed freely as long as it*
  154.    *is distributed in its entirety and it is not distributed for profit.  *
  155.    *         Copyright (C) 1991-2 by Quarterdeck Office Systems           *
  156.    ************************ E N D   O F   F I L E *************************
  157.